<style type="text/css">

#wview{
background-color:#F4F4F4;
}
#table1{
background-color:#FFF8E5;
padding:2px 2px 2px 2px

}
#table1 td{
width:110;
height:150;
vertical-align:top;
border:1.5px solid #FCB183;
text-align:center;
color:#FF6407;
font-size: 12px;

}


</style>
<div id='wview'>
<table cellpadding="0" cellspacing="0" width="100%"
	style="margin-top:5px">
	<tr>
		<td id='content-header-left' style="text-align:center" height='29px'>Gallery</td>
		<td id='content-header-center' style="text-align:center"><?=ucfirst(trim_name($categeoryname,35))?> Gallery</td>
		<td id='content-header-right'></td>

	</tr>
	<tr>
		<td id="gossip_left_right" bgcolor="#FF9853" valign="top">
			<table>
			   		<?php 
			   		
	   foreach ($gallerycategeories->result() as $item ) {
			?>
			   <tr>
		       <td><img src="<?=base_url();?>assets/imgs/button-img.gif" /></td>
			   		
			 <td class="sidelinks"><a
				href="<?=base_url();?>gallery/details/<?=$item->id?>"
				><?=ucfirst(trim_name($item->catname,15))?></a></td></tr>
			<? 
			  
                }?>	
			
	</table>
		
		</td>
		
		<td>

	
	 
		
		<table id='table1' cellpadding='3px' cellspacing='2px'>
			<tr>
				<td height='15px' colspan='4'
					style="background-color:#FF6407;text-align:left;padding-top:5px;color:#FFF8E5;font-weight:bold"><?//=$item['catname'];?>
				</td>
			</tr>
			<tr>
			<? $count=1;  foreach($images as $item){?>
			
				<td height='113px' width='140px'><div style="height:110px;width:150px;"><a href="<?=base_url();?>gallery/galleryview/<?=$item['id']?>/<?=$catid?>" style="color:purple"><img
					src="<?=base_url ();?>assets/gallery/image<?=$item['id']?>_thumb.jpg" border='0'
					style="vertical-align: top" /></a></div>
					</td>
			
			
			<?if($count%4==0)
			{
				echo "</tr><tr>";
			}
			$count++; 
                 }  ?>
			</tr>
			<tr>
				<td height='20px' colspan='4'
					style="background-color: #CCC7CB; text-align: right;"><a href=""
					style="color: red"></a></td>
			</tr>



		</table>
		
		
		
		</td>
		<td></td>
	</tr>

</table>
<? //echo $this->pagination->create_links();?>
</br>
</br>
</div>